package com.zhongwang.mms.gen.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class BShoppingPlanImportLogExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public BShoppingPlanImportLogExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andSpiIdIsNull() {
            addCriterion("spi_id is null");
            return (Criteria) this;
        }

        public Criteria andSpiIdIsNotNull() {
            addCriterion("spi_id is not null");
            return (Criteria) this;
        }

        public Criteria andSpiIdEqualTo(Integer value) {
            addCriterion("spi_id =", value, "spiId");
            return (Criteria) this;
        }

        public Criteria andSpiIdNotEqualTo(Integer value) {
            addCriterion("spi_id <>", value, "spiId");
            return (Criteria) this;
        }

        public Criteria andSpiIdGreaterThan(Integer value) {
            addCriterion("spi_id >", value, "spiId");
            return (Criteria) this;
        }

        public Criteria andSpiIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("spi_id >=", value, "spiId");
            return (Criteria) this;
        }

        public Criteria andSpiIdLessThan(Integer value) {
            addCriterion("spi_id <", value, "spiId");
            return (Criteria) this;
        }

        public Criteria andSpiIdLessThanOrEqualTo(Integer value) {
            addCriterion("spi_id <=", value, "spiId");
            return (Criteria) this;
        }

        public Criteria andSpiIdIn(List<Integer> values) {
            addCriterion("spi_id in", values, "spiId");
            return (Criteria) this;
        }

        public Criteria andSpiIdNotIn(List<Integer> values) {
            addCriterion("spi_id not in", values, "spiId");
            return (Criteria) this;
        }

        public Criteria andSpiIdBetween(Integer value1, Integer value2) {
            addCriterion("spi_id between", value1, value2, "spiId");
            return (Criteria) this;
        }

        public Criteria andSpiIdNotBetween(Integer value1, Integer value2) {
            addCriterion("spi_id not between", value1, value2, "spiId");
            return (Criteria) this;
        }

        public Criteria andSpiTrackCodeIsNull() {
            addCriterion("spi_track_code is null");
            return (Criteria) this;
        }

        public Criteria andSpiTrackCodeIsNotNull() {
            addCriterion("spi_track_code is not null");
            return (Criteria) this;
        }

        public Criteria andSpiTrackCodeEqualTo(String value) {
            addCriterion("spi_track_code =", value, "spiTrackCode");
            return (Criteria) this;
        }

        public Criteria andSpiTrackCodeNotEqualTo(String value) {
            addCriterion("spi_track_code <>", value, "spiTrackCode");
            return (Criteria) this;
        }

        public Criteria andSpiTrackCodeGreaterThan(String value) {
            addCriterion("spi_track_code >", value, "spiTrackCode");
            return (Criteria) this;
        }

        public Criteria andSpiTrackCodeGreaterThanOrEqualTo(String value) {
            addCriterion("spi_track_code >=", value, "spiTrackCode");
            return (Criteria) this;
        }

        public Criteria andSpiTrackCodeLessThan(String value) {
            addCriterion("spi_track_code <", value, "spiTrackCode");
            return (Criteria) this;
        }

        public Criteria andSpiTrackCodeLessThanOrEqualTo(String value) {
            addCriterion("spi_track_code <=", value, "spiTrackCode");
            return (Criteria) this;
        }

        public Criteria andSpiTrackCodeLike(String value) {
            addCriterion("spi_track_code like", value, "spiTrackCode");
            return (Criteria) this;
        }

        public Criteria andSpiTrackCodeNotLike(String value) {
            addCriterion("spi_track_code not like", value, "spiTrackCode");
            return (Criteria) this;
        }

        public Criteria andSpiTrackCodeIn(List<String> values) {
            addCriterion("spi_track_code in", values, "spiTrackCode");
            return (Criteria) this;
        }

        public Criteria andSpiTrackCodeNotIn(List<String> values) {
            addCriterion("spi_track_code not in", values, "spiTrackCode");
            return (Criteria) this;
        }

        public Criteria andSpiTrackCodeBetween(String value1, String value2) {
            addCriterion("spi_track_code between", value1, value2, "spiTrackCode");
            return (Criteria) this;
        }

        public Criteria andSpiTrackCodeNotBetween(String value1, String value2) {
            addCriterion("spi_track_code not between", value1, value2, "spiTrackCode");
            return (Criteria) this;
        }

        public Criteria andSpiRemarkIsNull() {
            addCriterion("spi_remark is null");
            return (Criteria) this;
        }

        public Criteria andSpiRemarkIsNotNull() {
            addCriterion("spi_remark is not null");
            return (Criteria) this;
        }

        public Criteria andSpiRemarkEqualTo(String value) {
            addCriterion("spi_remark =", value, "spiRemark");
            return (Criteria) this;
        }

        public Criteria andSpiRemarkNotEqualTo(String value) {
            addCriterion("spi_remark <>", value, "spiRemark");
            return (Criteria) this;
        }

        public Criteria andSpiRemarkGreaterThan(String value) {
            addCriterion("spi_remark >", value, "spiRemark");
            return (Criteria) this;
        }

        public Criteria andSpiRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("spi_remark >=", value, "spiRemark");
            return (Criteria) this;
        }

        public Criteria andSpiRemarkLessThan(String value) {
            addCriterion("spi_remark <", value, "spiRemark");
            return (Criteria) this;
        }

        public Criteria andSpiRemarkLessThanOrEqualTo(String value) {
            addCriterion("spi_remark <=", value, "spiRemark");
            return (Criteria) this;
        }

        public Criteria andSpiRemarkLike(String value) {
            addCriterion("spi_remark like", value, "spiRemark");
            return (Criteria) this;
        }

        public Criteria andSpiRemarkNotLike(String value) {
            addCriterion("spi_remark not like", value, "spiRemark");
            return (Criteria) this;
        }

        public Criteria andSpiRemarkIn(List<String> values) {
            addCriterion("spi_remark in", values, "spiRemark");
            return (Criteria) this;
        }

        public Criteria andSpiRemarkNotIn(List<String> values) {
            addCriterion("spi_remark not in", values, "spiRemark");
            return (Criteria) this;
        }

        public Criteria andSpiRemarkBetween(String value1, String value2) {
            addCriterion("spi_remark between", value1, value2, "spiRemark");
            return (Criteria) this;
        }

        public Criteria andSpiRemarkNotBetween(String value1, String value2) {
            addCriterion("spi_remark not between", value1, value2, "spiRemark");
            return (Criteria) this;
        }

        public Criteria andSpiCreateTimeIsNull() {
            addCriterion("spi_create_time is null");
            return (Criteria) this;
        }

        public Criteria andSpiCreateTimeIsNotNull() {
            addCriterion("spi_create_time is not null");
            return (Criteria) this;
        }

        public Criteria andSpiCreateTimeEqualTo(Date value) {
            addCriterion("spi_create_time =", value, "spiCreateTime");
            return (Criteria) this;
        }

        public Criteria andSpiCreateTimeNotEqualTo(Date value) {
            addCriterion("spi_create_time <>", value, "spiCreateTime");
            return (Criteria) this;
        }

        public Criteria andSpiCreateTimeGreaterThan(Date value) {
            addCriterion("spi_create_time >", value, "spiCreateTime");
            return (Criteria) this;
        }

        public Criteria andSpiCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("spi_create_time >=", value, "spiCreateTime");
            return (Criteria) this;
        }

        public Criteria andSpiCreateTimeLessThan(Date value) {
            addCriterion("spi_create_time <", value, "spiCreateTime");
            return (Criteria) this;
        }

        public Criteria andSpiCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("spi_create_time <=", value, "spiCreateTime");
            return (Criteria) this;
        }

        public Criteria andSpiCreateTimeIn(List<Date> values) {
            addCriterion("spi_create_time in", values, "spiCreateTime");
            return (Criteria) this;
        }

        public Criteria andSpiCreateTimeNotIn(List<Date> values) {
            addCriterion("spi_create_time not in", values, "spiCreateTime");
            return (Criteria) this;
        }

        public Criteria andSpiCreateTimeBetween(Date value1, Date value2) {
            addCriterion("spi_create_time between", value1, value2, "spiCreateTime");
            return (Criteria) this;
        }

        public Criteria andSpiCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("spi_create_time not between", value1, value2, "spiCreateTime");
            return (Criteria) this;
        }

        public Criteria andSpiCreateUserIsNull() {
            addCriterion("spi_create_user is null");
            return (Criteria) this;
        }

        public Criteria andSpiCreateUserIsNotNull() {
            addCriterion("spi_create_user is not null");
            return (Criteria) this;
        }

        public Criteria andSpiCreateUserEqualTo(String value) {
            addCriterion("spi_create_user =", value, "spiCreateUser");
            return (Criteria) this;
        }

        public Criteria andSpiCreateUserNotEqualTo(String value) {
            addCriterion("spi_create_user <>", value, "spiCreateUser");
            return (Criteria) this;
        }

        public Criteria andSpiCreateUserGreaterThan(String value) {
            addCriterion("spi_create_user >", value, "spiCreateUser");
            return (Criteria) this;
        }

        public Criteria andSpiCreateUserGreaterThanOrEqualTo(String value) {
            addCriterion("spi_create_user >=", value, "spiCreateUser");
            return (Criteria) this;
        }

        public Criteria andSpiCreateUserLessThan(String value) {
            addCriterion("spi_create_user <", value, "spiCreateUser");
            return (Criteria) this;
        }

        public Criteria andSpiCreateUserLessThanOrEqualTo(String value) {
            addCriterion("spi_create_user <=", value, "spiCreateUser");
            return (Criteria) this;
        }

        public Criteria andSpiCreateUserLike(String value) {
            addCriterion("spi_create_user like", value, "spiCreateUser");
            return (Criteria) this;
        }

        public Criteria andSpiCreateUserNotLike(String value) {
            addCriterion("spi_create_user not like", value, "spiCreateUser");
            return (Criteria) this;
        }

        public Criteria andSpiCreateUserIn(List<String> values) {
            addCriterion("spi_create_user in", values, "spiCreateUser");
            return (Criteria) this;
        }

        public Criteria andSpiCreateUserNotIn(List<String> values) {
            addCriterion("spi_create_user not in", values, "spiCreateUser");
            return (Criteria) this;
        }

        public Criteria andSpiCreateUserBetween(String value1, String value2) {
            addCriterion("spi_create_user between", value1, value2, "spiCreateUser");
            return (Criteria) this;
        }

        public Criteria andSpiCreateUserNotBetween(String value1, String value2) {
            addCriterion("spi_create_user not between", value1, value2, "spiCreateUser");
            return (Criteria) this;
        }

        public Criteria andSpiEnableFlagIsNull() {
            addCriterion("spi_enable_flag is null");
            return (Criteria) this;
        }

        public Criteria andSpiEnableFlagIsNotNull() {
            addCriterion("spi_enable_flag is not null");
            return (Criteria) this;
        }

        public Criteria andSpiEnableFlagEqualTo(Integer value) {
            addCriterion("spi_enable_flag =", value, "spiEnableFlag");
            return (Criteria) this;
        }

        public Criteria andSpiEnableFlagNotEqualTo(Integer value) {
            addCriterion("spi_enable_flag <>", value, "spiEnableFlag");
            return (Criteria) this;
        }

        public Criteria andSpiEnableFlagGreaterThan(Integer value) {
            addCriterion("spi_enable_flag >", value, "spiEnableFlag");
            return (Criteria) this;
        }

        public Criteria andSpiEnableFlagGreaterThanOrEqualTo(Integer value) {
            addCriterion("spi_enable_flag >=", value, "spiEnableFlag");
            return (Criteria) this;
        }

        public Criteria andSpiEnableFlagLessThan(Integer value) {
            addCriterion("spi_enable_flag <", value, "spiEnableFlag");
            return (Criteria) this;
        }

        public Criteria andSpiEnableFlagLessThanOrEqualTo(Integer value) {
            addCriterion("spi_enable_flag <=", value, "spiEnableFlag");
            return (Criteria) this;
        }

        public Criteria andSpiEnableFlagIn(List<Integer> values) {
            addCriterion("spi_enable_flag in", values, "spiEnableFlag");
            return (Criteria) this;
        }

        public Criteria andSpiEnableFlagNotIn(List<Integer> values) {
            addCriterion("spi_enable_flag not in", values, "spiEnableFlag");
            return (Criteria) this;
        }

        public Criteria andSpiEnableFlagBetween(Integer value1, Integer value2) {
            addCriterion("spi_enable_flag between", value1, value2, "spiEnableFlag");
            return (Criteria) this;
        }

        public Criteria andSpiEnableFlagNotBetween(Integer value1, Integer value2) {
            addCriterion("spi_enable_flag not between", value1, value2, "spiEnableFlag");
            return (Criteria) this;
        }

        public Criteria andSpiStatusIsNull() {
            addCriterion("spi_status is null");
            return (Criteria) this;
        }

        public Criteria andSpiStatusIsNotNull() {
            addCriterion("spi_status is not null");
            return (Criteria) this;
        }

        public Criteria andSpiStatusEqualTo(Integer value) {
            addCriterion("spi_status =", value, "spiStatus");
            return (Criteria) this;
        }

        public Criteria andSpiStatusNotEqualTo(Integer value) {
            addCriterion("spi_status <>", value, "spiStatus");
            return (Criteria) this;
        }

        public Criteria andSpiStatusGreaterThan(Integer value) {
            addCriterion("spi_status >", value, "spiStatus");
            return (Criteria) this;
        }

        public Criteria andSpiStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("spi_status >=", value, "spiStatus");
            return (Criteria) this;
        }

        public Criteria andSpiStatusLessThan(Integer value) {
            addCriterion("spi_status <", value, "spiStatus");
            return (Criteria) this;
        }

        public Criteria andSpiStatusLessThanOrEqualTo(Integer value) {
            addCriterion("spi_status <=", value, "spiStatus");
            return (Criteria) this;
        }

        public Criteria andSpiStatusIn(List<Integer> values) {
            addCriterion("spi_status in", values, "spiStatus");
            return (Criteria) this;
        }

        public Criteria andSpiStatusNotIn(List<Integer> values) {
            addCriterion("spi_status not in", values, "spiStatus");
            return (Criteria) this;
        }

        public Criteria andSpiStatusBetween(Integer value1, Integer value2) {
            addCriterion("spi_status between", value1, value2, "spiStatus");
            return (Criteria) this;
        }

        public Criteria andSpiStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("spi_status not between", value1, value2, "spiStatus");
            return (Criteria) this;
        }

        public Criteria andSpiTypeIsNull() {
            addCriterion("spi_type is null");
            return (Criteria) this;
        }

        public Criteria andSpiTypeIsNotNull() {
            addCriterion("spi_type is not null");
            return (Criteria) this;
        }

        public Criteria andSpiTypeEqualTo(Integer value) {
            addCriterion("spi_type =", value, "spiType");
            return (Criteria) this;
        }

        public Criteria andSpiTypeNotEqualTo(Integer value) {
            addCriterion("spi_type <>", value, "spiType");
            return (Criteria) this;
        }

        public Criteria andSpiTypeGreaterThan(Integer value) {
            addCriterion("spi_type >", value, "spiType");
            return (Criteria) this;
        }

        public Criteria andSpiTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("spi_type >=", value, "spiType");
            return (Criteria) this;
        }

        public Criteria andSpiTypeLessThan(Integer value) {
            addCriterion("spi_type <", value, "spiType");
            return (Criteria) this;
        }

        public Criteria andSpiTypeLessThanOrEqualTo(Integer value) {
            addCriterion("spi_type <=", value, "spiType");
            return (Criteria) this;
        }

        public Criteria andSpiTypeIn(List<Integer> values) {
            addCriterion("spi_type in", values, "spiType");
            return (Criteria) this;
        }

        public Criteria andSpiTypeNotIn(List<Integer> values) {
            addCriterion("spi_type not in", values, "spiType");
            return (Criteria) this;
        }

        public Criteria andSpiTypeBetween(Integer value1, Integer value2) {
            addCriterion("spi_type between", value1, value2, "spiType");
            return (Criteria) this;
        }

        public Criteria andSpiTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("spi_type not between", value1, value2, "spiType");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}